import request from '@/utils/request'

export const queryCertificate = ()=>{
  return request({
    url:`/globalSetting/certificate/query`,
    method:'post'
  })
}
export const saveCertificate = (data: any)=>{
  return request({
    url:`/globalSetting/certificate/save`,
    method:'post',
    data
  })
}
export const savePipeline = (data: any)=>{
  return request({
    url:`/globalSetting/pipeline/save`,
    method:'post',
    data
  })
}
export const queryNoticeList = (data: any)=>{
  return request({
    url:`/globalSetting/notice/query`,
    method:'post',
    data
  })
}
export const saveNotice = (data: any)=>{
  return request({
    url:`/globalSetting/notice/save`,
    method:'post',
    data
  })
}
export const queryPipeline = ()=>{
  return request({
    url:`/globalSetting/pipeline/query`,
    method:'post'
  })
}
export const querySite = (data: any)=>{
  return request({
    url:`/globalSetting/site/query`,
    method:'post',
    data
  })
}
export const queryMapping = (data: any)=>{
  return request({
    url:`/globalSetting/mapping/query`,
    method:'post',
    data
  })
}
export const saveMapping = (data: any)=>{
  return request({
    url:`/globalSetting/mapping/save`,
    method:'post',
    data
  })
}
export const queryAccount = (data: any)=>{
  return request({
    url:`/globalSetting/account/query`,
    method:'post',
    data
  })
}
export const saveAccount = (data: any)=>{
  return request({
    url:`/globalSetting/account/save`,
    method:'post',
    data
  })
}

export const queryAuthority = (data: any)=>{
  return request({
    url:`/globalSetting/authority/query`,
    method:'post',
    data
  })
}
